-- Skill Level: 300
-- Description: Drains a percentage of damage dealt to HP varying with TP.
-- Will inflict damage on undead but will not drain HP.
-- Does not stack with Sneak Attack.
-- Not aligned with any "elemental gorgets" or "elemental belts" due to it's absence of Skillchain properties.
-- Element: Dark
-- Skillchain Properties: None
-- Modifiers: STR:30% ; MND:50%
-- Damage Multipliers by TP:
-- 100%TP 200%TP 300%TP
-- 2.75 2.75 2.75
-- HP Drained By TP:
-- 100%TP 200%TP 300%TP
-- 50% 75% 100%
-- Appears to use (PlayerINT - TargetINT)*2 rather than fINT. This INT difference does not appear to cap, making INT very potent for this WS
-----------------------------------

require("scripts/globals/status");
require("scripts/globals/settings");
require("scripts/globals/weaponskills");

function OnUseWeaponSkill(player, target, wsID)

numHits = 1;
ftp100 = 2.75; ftp200 = 2.75; ftp300 = 2.75;
str_wsc = 0.3; dex_wsc = 0.0; vit_wsc = 0.0; agi_wsc = 0.0; int_wsc = 0.0; mnd_wsc = 0.5; chr_wsc = 0.0;
canCrit = false;
crit100 = 0.0; crit200 = 0.0; crit300 = 0.0;
acc100 = 0.0; acc200= 0.0; acc300= 0.0;
atkmulti = 1;

-- Drain effect

damage = doPhysicalWeaponskill(player,target,numHits,str_wsc,dex_wsc,vit_wsc,agi_wsc,int_wsc,mnd_wsc,chr_wsc,canCrit,crit100,crit200,crit300,acc100,acc200,acc300,atkmulti);
return damage;

end